// 左侧菜单栏接口
const express = require('express');
const router = express.Router();
// 引入左侧菜单栏的处理函数
const cattegoryHandle = require('../router_handler/categories')
router.get('/categories', cattegoryHandle.getCategories)
router.post('/categories', cattegoryHandle.addcate)
router.get('/categories/:id', cattegoryHandle.searchcate)
router.put('/categories/:id', cattegoryHandle.editcate)
router.delete('/categories/:id', cattegoryHandle.deletecate)
router.get('/categories/:id/attributes', cattegoryHandle.getattributes)
router.post('/categories/:id/attributes', cattegoryHandle.addattributes)
module.exports = router